package com.ctshk.rpc.tour.req.es;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDate;

/**
 * @author lys
 * @create 2021-05-22
 */
@Data
@ApiModel(value="TripDetailsReq对象", description="行程详情请求对象")
public class TripDetailsReq implements Serializable {

    @NotNull(message = "行程id不能为空")
    @ApiModelProperty(value = "行程id")
    private Long id;

    @NotNull(message = "渠道id不能为空")
    @ApiModelProperty(value = "渠道id")
    private Long channelId;

    @ApiModelProperty(value = "经度（实例114.036488）",required = true)
    private Double lon;

    @ApiModelProperty(value = "纬度（实例22.612161）",required = true)
    private Double lat;

    @ApiModelProperty(value = "C端用户id,前端不用传")
    private Long userId;
}
